package com.ruoyi.user.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.user.mapper.ChumMapper;
import com.ruoyi.user.model.pojo.entity.Chum;
import com.ruoyi.user.service.IChumService;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

/**
 * <p>
 * 密友关系配置 服务实现类
 * </p>
 *
 * @author Gnc
 * @since 2024-12-24
 */
@Service
public class ChumServiceImpl extends ServiceImpl<ChumMapper, Chum> implements IChumService {

    @Override
    public Chum verify(Long id) {
        Chum chum = getById(id);
        Assert.notNull(chum,"密友不存在");
        return chum;
    }
}
